// pages/my/chongzhi/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    userInfo:{},
      jinrishouru:0
  },
  doChongZhi:function(e){
  	var that = this;
  	wx.navigateTo({
  		url:'/pages/my/chongzhi/dochongzhi'
  	})
  },
    tixian:function(e){
        var that = this;
        wx.navigateTo({
            url:'/pages/my/tixian/index'
        })
    },
  mingxi:function(e){
    wx.navigateTo({
      url:'/pages/my/mingxi?type=2'
    })
  },
    onLoad:function(e){
      var that = this;
        this.setData({
            userInfo:getApp().globalData.userInfo
        })
        that.getDataList();
    },
    getDataList:function(e){
      var that  = this;
        wx.request({
            url:getApp().data.server + '/index.php/Tongcheng/Book/getShouYiByDay?uid='+getApp().globalData.userInfo.uid,
            success:function(d){
                console.log(d.data);
                that.setData({
                    jinrishouru:d.data.cha1
                })
            }
        })
    }
})